package com.liao.service;

import com.liao.bean.Codes;
import com.liao.bean.result.PageResult;

public interface CodeService {

    /**
     * 根据字段名模糊查询Code列表
     * @param currentPage
     * @param pageSize
     * @param fieldName
     * @return
     * @throws Exception
     */
    PageResult<Codes> queryCodeListByPage(Integer currentPage, Integer pageSize, String fieldName) throws Exception;

    /**
     * 添加会员
     * @param code
     * @throws Exception
     */
    void addCode(Codes code) throws Exception;

    /**
     * 修改会员
     * @param code
     * @throws Exception
     */
    void editCode(Codes code) throws Exception;

    /**
     * 根据id删除会员
     * @param codeId
     * @throws Exception
     */
    void deleteCode(String codeId) throws Exception;
}
